package com.koala.learn.threadlearn.charter4;

/**
 * @Description TODO
 * @Date 2022/2/27 21:25
 * @Created by koala
 */

public interface ThreadPool<Job extends Runnable> {
    // 执行一个工作
    void execute(Job job);

    void shutdown();

    void addWorker(int num);

    void removeWorker(int num);

    int getJobSize();
}
